﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace WH
{
    [DataContract]
    public class Warehouse
    {
        [DataMember]
        public String name
        {
            get { return name; }
            set { name = value; }
        }

        [DataMember]
        public Int32 price
        {
            get { return price; }
            set { price = value; }
        }

        [DataMember]
        public Int32 quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        [DataMember]
        public Int32 ordertime
        {
            get { return ordertime; }
            set { ordertime = value; }
        }

        public Warehouse(String name, Int32 price, Int32 quantity, Int32 ordertime)
        {
            this.name = name;
            this.price = price;
            this.quantity = quantity;
            this.ordertime = ordertime;
        }

    }
}